package com.cyl.manager.oms.convert;

import org.mapstruct.Mapper;

import com.cyl.manager.oms.domain.dto.OrderLockDTO;
import com.cyl.manager.oms.domain.entity.OrderLock;
import com.cyl.manager.oms.domain.vo.OrderLockVO;

import java.util.List;
/**
 * 锁单管理  DO <=> DTO <=> VO / BO / Query
 *
 * @author zcc
 */
@Mapper(componentModel = "spring")
public interface OrderLockConvert  {

    /**
     * @param source DO
     * @return DTO
     */
    OrderLockDTO do2dto(OrderLock source);

    /**
     * @param source DTO
     * @return DO
     */
    OrderLock dto2do(OrderLockDTO source);

    List<OrderLockVO> dos2vos(List<OrderLock> list);
}
